package observer.observer1;

public class Test {
    public static void main(String[] agrs){
        GuPiao gp=new GuPiao();
        GuMing g1=new GuMing("Tom");
        GuMing g2=new GuMing("Tt");
        GuMing g3=new GuMing("To");
        gp.addObserver(g1);
        gp.addObserver(g2);
        gp.addObserver(g3);
        gp.setPrice(90);

    }
}
